<template>
    <p>这是About页</p>
    <p>{{ id }}</p>
    <p>{{ name }}</p>
    <p>{{ $route.query }}</p>
</template>
<script>
export default{
    data(){
        return {
            id:0,
            name:''
        }
    },
    mounted(){
        console.log("this.$route",this.$route);
        console.log("history.state",history.state);
        this.id = history.state.params.id;
        this.name = history.state.params.name;
    }
}
</script>